home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
By Popular Request 2.0
/
By Popular Request 2.0 (Arsenal Computer).ISO
/
amiga_4
/
nsclk170.ads
< prev
next >
Wrap
Text File
|
1995-06-11
|
8KB
|
183 lines
ADS Zone: 1
ADS Hatch Site: Paul Miller
ADS Position: ADS Zone 1 STAR
BBS Name: Lonely Mountain BBS
Phone Number(s): 804-827-0726
Network Address: 1:271/292
Network Region: 13
BBS Hours: 24 Hrs/Day
BBS Mailer/Software: Mebbs-Net Pro BBS
BBS Storage Space: 2250 Megs + 8 CD Roms
File Requestable : <X> Y < > N
File Request Hours : All The Time
Short: Many Options. Vanishes for Prefs change.
Author: John D. Muir <John_Muir@UManitoba.Ca>
Uploader: John D. Muir <John_Muir@UManitoba.Ca>
Type: util/time
NISClock 1.70 (27.5.95)
⌐ Copyright 1995 John Muir
Written by John Muir
___________________________________________________________________________
Introduction
NISClock is a small clock program that uses a minimum amount of CPU time
since it only updates the clock every minute (or every second if you
wish). It can make use of Stephan Becker's screennotify.library which
patches a few intuition.library functions so that the clock will
automatically close its window if the Workbench screen is removed by
IPrefs for a preferences change or by any other program which calls
CloseWorkbench().
___________________________________________________________________________
Requirements
- Requires V37 (2.04) of the Amiga OS, but can use V39 features.
- Optionally uses screennotify.library by Stephan Becker. See
'Installation' for more information on screennotify.library.
- NISClock must be run from the Workbench.
___________________________________________________________________________
Installation
With the workbench, you can just copy NISClock to the WBStartup drawer to
have the program execute as you boot-up. If you have a 68020 or better,
you can use NISClock020 instead.
screennotify.library by Stephan Becker must be installed in LIBS: or
PROGDIR: (the directory where NISClock is started from). Get
screennofity.library from the distribution archive on AmiNET:
/pub/aminet/util/libs/ScreenNotify10.lha
screennotify.library is also available in the latest ToolManager
distribution archive(s) which I recommend highly;
/pub/aminet/util/boot/ToolManager21?.lha
___________________________________________________________________________
Usage
NISClock will only run from the Workbench and it supports the following
tooltypes;
SECONDS - Boolean; true when the tooltype exists.
- display seconds when true.
24HOUR - Boolean
- display the time in 24 hour mode.
INTITLEBAR - Boolean
- display the time in the title bar colours, otherwise a box
is drawn on the edge of the window to match the depth gadget.
- NOTE: V37: Backpen = 2 (White) and FrontPen = 1 (Black).
FULLYEAR - Boolean
- display the year part as YYYY.
TIMEDATE - Boolean
- display the date and time at the same time.
LEFTEDGE - Numeric; eg: LEFTEDGE=400
- the value represents the left edge of the NISClock window.
- -1 for default position.
- the window cannot be positioned with the mouse, so make good use
of the file notificaiton on NISClock.info! :)
DATEFORMAT - Enumerated; eg: DATEFORMAT=DDMMYY
- display the date in the requested format;
DATEFORMAT = DDMMYY (default), MMDDYY or YYMMDD.
JUSTIFICATION - Enumerated
- display the time and/or date with justification;
JUSTIFICATION = CENTER, RIGHT, LEFT, or NONE.
- NONE means RIGHT when INTITLEBAR is ON, and CENTER otherwise.
NISClock will automatically update itself if the icon tooltypes are
changed.
A mouse click on the NISClock window will cause the date to be displayed
unless TIMEDATE is true. Additional Clicking will toggle between Time and
Date. The Time will automatically reappear after 4 seconds.
To STOP NISClock, simply run the program again.
NISClock WILL NOT RUN without screennotify.library.
NISClock WILL NOT RUN from the CLI.
___________________________________________________________________________
Comments? Talk to me!
EMail: John D. Muir <John_Muir@UManitoba.Ca>
or John Derek Muir <ummuir05@cc.umanitoba.ca>
Snail Mail:
John Muir
3-152 Guigues Ave.
Ottawa, ON
K1N 5H9
CANADA
___________________________________________________________________________
History
0.99 - Released to IRC for testing. Tested on OS2.x and OS3.x.
1.0 - Released to AmiNET. 68000 version compiled... (oops! :)
1.1 - Now displays the date with a mouse click on the Window.
- Date disappears after 5 seconds.
- Fixed a few bugs.
1.2 - Reduced Code Size.
- Date disappears after 4 seconds now.
- Date is displayed in standard DD.MM.YY, 0s removed.
1.2a - BUGFIX: 10 o'clock now shows the 1...
1.3 - Added the tooltypes; SECONDS, 24HOUR, INTITLEBAR
- INTITLEBAR requires intuition.library >= V39.
1.4 - Added the DATEFORMAT tooltype. See "Usage" for more.
- INTITLEBAR no longer requires V39. Pens 1 and 2 are used as
foreground and background respectively.
1.5 - JUSTIFICATION tooltype added. (NONE, LEFT, RIGHT, or CENTER) RIGHT
is the default for INTITLBAR=1, while CENTER is the default for
INTITLEBAR=0.
- FULLYEAR causes YYYY to be displayed instead of YY.
- TIMEDATE causes the time and the date to be displayed at the same
time.
- 68030 Compilation included.
- The icon is a NewIcons icon. Thanks to Gavin Hamil.
1.51 - Small Code optimizations -> 76 byte reduction.
1.60 - Oops... I forgot that the revision number is not decimal..
- You can now position the window using the LEFTEDGE tooltype.
- Reworked the USAGE section of the .readme file.
- Including an '020 compilation instead of '030 since they are the
same size.
1.61 - Size optimizations. '020 version is now under 4k!!
1.62 - BUGFIX: Now the program does not try to reopen its window 5 seconds
after being notified of a Closed Workbench. Although NISClock opens
on the Default public screen, it is a good idea to make it run on the
Workbench screen, because otherwise it may cause problems with other
programs such as Directory Opus. Maybe I'll implement opening on a
PUBSCREEN of choice..
- BUGFIX: ToolTypes can now be turned off with icon notification
after the program has been running. (Notification worked, but you
couldn't turn off the options... ;)
- Size optimizations. Lost 112 bytes (116 for '020 version).
1.70 - No longer requires screennotify.library.
- BUGFIX: Defaults for JUSTIFICATION and DATEFMT are now set properly
if the tooltypes aren't found.
- Handles other public screens properly, if you should manage to get
NISClock on a screen besides Workbench. ie; NISClock will close its
window if the Public Screen is closed. Provided you are using
screennotify.library of course.
- Two spaces between Date and Time when TIMEDATE is set.
- WARNING: Do not use screennotify.library and ScreenTab at the same
time if you have windows that subscribe to screennotify.library
(NISClock) on OTHER public screens (besides Workbench) or intuition
will Dead-Lock.
___________________________________________________________________________
To Do - Let me know if you have a favorite or suggestions.
- PUBSCREEN of your choice. (maybe)
- Localization; time and date are displayed in the format specified
by your locale. (v2.0)
- The weekday written. <- localized. (v2.0)
- The month written. <- localized. (v2.0)